import hezi.firebase.ImageF;
import hezi.firebase.ImageOplistChildEventListener;

import com.firebase.client.ChildEventListener;
import com.firebase.client.DataSnapshot;
import com.firebase.client.Firebase;
import com.firebase.client.ValueEventListener;


public class FirebaseDemo {

	public static void main(String[] args) {
		Firebase ref = new Firebase("https://luntankong.firebaseIO.com/newimagelist/");
		
		
		
		
//		for(int i=1; i<1000; i++){
	//		ref.child(""+i).setValue(new ImageF(""+i, "http://pic.www-siwaniu-com.iego.net/qq32593992/jinghuaban/shenghuozhao/213"+i+".jpg"));
//			ref.child("image"+i).removeValue();
//		}
		    
	    
	    
//		ref.push("{id: uid, text: text}");
		
//		ref.addValueEventListener(new ValueEventListener() {
//
//		    @Override
//		    public void onDataChange(DataSnapshot snap) {
//		        System.out.println(snap.getName() + " -> " + snap.getValue());
//		    }
//
//		    @Override public void onCancelled() { }
//		});

	}
	


}


